package cn.aaa.openFeign;

import cn.aaa.constants.AllConsts;
import cn.aaa.pojo.domain.LoginVo;
import cn.aaa.result.JSONResult;
import cn.dev33.satoken.annotation.SaIgnore;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

@FeignClient(value = AllConsts.Remote.SERVICE_NAME_UAA,fallbackFactory = UaaOpenFeignFallbackFactory.class)
public interface UaaOpenFeign {
    @SaIgnore
    @PostMapping( AllConsts.Remote.REMOTE_PREFLIX+ "/register")
        JSONResult register(@RequestBody @Valid LoginVo loginVo);
}
